//表示每个模块都可能用到的公共信息
package com.example.searchjavaapi.common;

//表示一个文档对象（HTML对象）
public class DocInfo {
    //docID表示文档的唯一身份标识，不能重复
    private int docId;
    //该文档的标题
    //Collection.html ==> Collection
    private String title;
    //该文档对应的线上文档，根据本地文件路径可以构建出线上文档路径
    private String url;
    //该文档的正文，把html中的标签去掉，留下的就是正文
    private String contnet;



    @Override
    public String toString() {
        return "DocInfo{" +
                "docId=" + docId +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", contnet='" + contnet + '\'' +
                '}';
    }

    public int getDocId() {
        return docId;
    }

    public void setDocId(int docId) {
        this.docId = docId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContnet() {
        return contnet;
    }

    public void setContnet(String contnet) {
        this.contnet = contnet;
    }
}




















